<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="index.css">
    <script src="index.js"></script>
    <script src="../../../lib/jquery-3.4.1.js"></script>
</head>

<body>
    <div class="container">

        <img src="../../images/pan.png" class="pan"></img>
        <img src="../../images/shou.png" class="handle"></img>
    </div>
    <script>
        var isPlay=false;
        $('.pan').click(function(){
            isPlay=!isPlay;
            console.log(isPlay)
            if(isPlay){
                $(".handle").addClass("move").removeClass("unmove")
            }else{
                $(".handle").addClass("unmove").removeClass("move")
            }
        })

    </script>
</body>

</html>